package com.qhg.saas_server.service.impl;

import com.qhg.saas_server.mapper.CompanyMapper;
import com.qhg.saas_server.pojo.Company;
import com.qhg.saas_server.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CompanyServiceImpl implements CompanyService {

    @Autowired
    CompanyMapper companyMapper;

    @Override
    public Company SelectCompany(Integer comId) {
        return companyMapper.SelectCompany(comId);
    }

    @Override
    public void UpdateCompanyById(Company company) {
        companyMapper.UpdateCompanyById(company);
    }

    @Override
    public void insertCompany(Company company) {
        companyMapper.insertCompany(company);
    }
}
